# from ronglian_sms_sdk import SmsSDK
from luffyapi.settings.dev import SMS
from luffyapi.libs.smsronglian_sdk.SmsSDK import SmsSDK
import json


def send_message(mobile,datas,tid):
    print(1)
    sdk = SmsSDK(SMS.get('accountSid'), SMS.get('accountToken'), SMS.get('appId'))
    resp = sdk.sendMessage(tid, mobile, datas)
    return json.loads(resp)

